package com.liu.oa.department.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.liu.oa.department.dao.DepartmentDao;
import com.liu.oa.department.entity.Department;
import com.liu.oa.department.service.DepartmentService;

@Service
public class DepartmentServiceImpl implements DepartmentService {

	@Autowired
	private DepartmentDao dao;
	
	@Transactional(readOnly=true)
	@Override
	public List<Department> findAll() {
		
		List<Department> list = dao.selectAll();
		
		return list;
	}
	

}
